/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.DataEntity;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 订单折扣Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class OrderDisc extends DataEntity<OrderDisc> {
	
	private static final long serialVersionUID = 1L;
	private Integer discId;		// disc_id
	private Integer orderId;		// 订单ID
	private BigDecimal amnt;		// 订单金额
	private String reason;		// 折扣原因
	private BigDecimal discAmnt;		// 折扣金额
	private String discDesc;		// 备注描述
	
	public OrderDisc() {
		super();
	}


	@NotNull(message="disc_id不能为空")
	@ExcelField(title="disc_id", align=2, sort=0)
	public Integer getDiscId() {
		return discId;
	}

	public void setDiscId(Integer discId) {
		this.discId = discId;
	}
	
	@ExcelField(title="订单ID", align=2, sort=1)
	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	
	@ExcelField(title="订单金额", align=2, sort=2)
	public BigDecimal getAmnt() {
		return amnt;
	}

	public void setAmnt(BigDecimal amnt) {
		this.amnt = amnt;
	}
	
	@ExcelField(title="折扣原因", align=2, sort=3)
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}
	
	@ExcelField(title="折扣金额", align=2, sort=4)
	public BigDecimal getDiscAmnt() {
		return discAmnt;
	}

	public void setDiscAmnt(BigDecimal discAmnt) {
		this.discAmnt = discAmnt;
	}
	
	@ExcelField(title="备注描述", align=2, sort=5)
	public String getDiscDesc() {
		return discDesc;
	}

	public void setDiscDesc(String discDesc) {
		this.discDesc = discDesc;
	}
	
}